package com.wn.main.navigator

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.navigation.fragment.NavHostFragment

/**
 * @Author: wn
 * @Date: 2024/9/9 16:53
 * @Description: 处理 Navigation 重建问题
 */
class WindowNavHostFragment : NavHostFragment() {
  override fun onCreateView(
    inflater: LayoutInflater,
    container: ViewGroup?,
    savedInstanceState: Bundle?,
  ): View {
    val frameLayout = WindowFrameLayout(inflater.context)
    frameLayout.id = id
    return frameLayout
  }
}